package com.enzo.moredb;

import com.alibaba.druid.spring.boot.autoconfigure.DruidDataSourceAutoConfigure;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 基础模块启动类
 * 添加@EnableDiscoveryClient注解启动微服务
 *
 * @author Enzo
 * @date 2020-7-6
 */
@SpringBootApplication(exclude = DruidDataSourceAutoConfigure.class)
@ComponentScan(basePackages = {"com.enzo.moredb", "com.dc.base"})
@EnableScheduling
@MapperScan({"com.enzo.moredb.mapper", "com.dc.base.mapper"})
public class MoredbStartApplication {
    public static void main(String[] args) {
        SpringApplication.run(MoredbStartApplication.class, args);
    }
}
